#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
class MainWindow;
}

class AddUrlDialog;
class ProgressDialog;
class GetFromWebDialog;

class MainWindow : public QMainWindow {
    Q_OBJECT
    
public:
    explicit MainWindow(QWidget* parent = nullptr);
    ~MainWindow();
    
private slots:
    void on_webview_load_finished();

    void on_webView_load_started();

    void on_webView_load_progress(int pgr);

    void on_buttonGetFromClipboard_clicked();

    void on_buttonSelectAll_clicked();

    void on_buttonSelectNone_clicked();

    void on_buttonSniff_clicked();

    void on_buttonRemoveUrl_clicked();

    void on_buttonAddUrl_clicked();

    void on_sniffer_progressChanged(int pgr);

    void on_sniffer_finished();

    void on_buttonToClipboard_clicked();

    void on_buttonAddTask_clicked();

    void on_buttonGetFromWeb_clicked();

private:
    Ui::MainWindow* ui;
    AddUrlDialog* dlgAdd;
    ProgressDialog* dlgProgress;
    GetFromWebDialog* dlgGetFromWeb;
};

#endif // MAINWINDOW_H
